﻿<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%String title="添加${table.TableMemo}";%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title><%=title%></title>
    <%@include file="../../include/jsAndCss.jsp" %>
    <script type="text/javascript" src="js/add.js"></script>
</head>
<body>
<!--添加窗口-->
<div id="Win" class="easyui-window" title="<%=title%>" data-options="closed: false,closable:false,modal: true,resizable: true,minimizable: false,
        maximizable: true,maximized:false,collapsible: false" style="width: 550px; height: 400px; padding: 10px;">
    <div class="easyui-layout" data-options="fit:true">
        <form id="form1">
            <div data-options="region:'center'" style="padding: 10px;">
                <table align="center">
				#foreach($c in $ColumnList)

				#if($c.IsPrimary)
				##主键不输出
				#elseif($c.ColumnType=="Timestamp")
				    #if(($c.ColumnName!="Update_Date")&&($c.ColumnName!="Create_Date"))
					 <tr><td class="tdright">
                        <s:label key="${c.ColumnNameAlias}" theme="simple" ></s:label>
                        ：</td>
                        <td>
                            <input type="text" id="txt${c.ColumnNameAlias}" name="${c.ColumnNameAlias}" class="easyui-datetimebox inputwidth" required="true"
                                   style="width: 120px;" data-options="editable:false"/>
                        </td></tr>
				    #end
				#elseif($c.ColumnType=="Integer")
					#if($c.ColumnName=="Status")
					 <tr><td class="tdright">
                        <s:label key="${c.ColumnNameAlias}" theme="simple" ></s:label>
                        ：</td>
                        <td>
                           <span id="StatusSpan"></span>
                        </td></tr>
					#else
				       <tr><td class="tdright">
                        <s:label key="${c.ColumnNameAlias}" theme="simple" ></s:label>
                        ：</td>
                        <td>
                            <input type="text" id="txt${c.ColumnNameAlias}" name="${c.ColumnNameAlias}" class="easyui-numberspinner inputwidth" required="true"
                                   style="width: 120px;"/>
                        </td></tr>
					#end
				#elseif($c.ColumnType=="String")
                    <tr><td class="tdright">
                        <s:label key="${c.ColumnNameAlias}" theme="simple" ></s:label>
                        ：</td>
                        <td>
                            <input type="text" id="txt${c.ColumnNameAlias}" name="${c.ColumnNameAlias}" class="easyui-validatebox inputwidth" required="true"
                                   style="width: 220px;" validType="length[0,${c.ColumnMaxLen}]"/>
                        </td></tr>
				#else
				  <tr><td class="tdright">
                        <s:label key="${c.ColumnNameAlias}" theme="simple" ></s:label>
                        ：</td>
                        <td>
                            <input type="text" id="txt${c.ColumnNameAlias}" name="${c.ColumnNameAlias}" class="easyui-validatebox inputwidth" required="true"
                                   style="width: 220px;"/>
                        </td></tr>
				#end
				#end
                </table>
            </div>
            <div data-options="region:'south',border:false" style="text-align: right; padding: 5px 0 0;">
                <a class="easyui-linkbutton" id="btnSave" data-options="iconCls:'icon-ok'" href="javascript:void(0)"
                        >确定</a> <a class="easyui-linkbutton" data-options="iconCls:'icon-undo'"
                                   href="javascript:void(0)" id="btnBack">返回</a>
            </div>
        </form>
    </div>
</div>
</body>
</html>